import { DictVO } from '@/common/vo';
import Axios from '@/utils/request';
import { IndexReportDTO, IndexReportRepVO } from '../vo/index-report';

export default class API {
    /**
     * 查询指标报告列表
     * @source 
     */
    static getIndexReportList(data: IndexReportDTO, type: string): Promise<IndexReportRepVO> {
        const url = type === 'today' ? '/event/today/query' : '/event/history/query'
        return Axios.post(url, data)
    }
}
